import service from '@/utils/request';

export default null;

// 术前检查日期
export const getBeforeDate = (params?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/queryPreoperativeDate',
    method: 'get',
    params,
  });
};
// 术后检查日期
export const getAfterDate = (params?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/queryPostoperativeDate',
    method: 'get',
    params,
  });
};

// 术前检查
export const getOperSearchBefore = (params?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/selectPreoperativeList',
    method: 'get',
    params,
  });
};
// 新增术前检查
export const addOperSearchBefore = (data?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/add',
    method: 'post',
    data,
  });
};
// 更新术前检查
export const updateOperSearchBefore = (data?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/updatePreoperative',
    method: 'POST',
    data,
  });
};
// 批量删除检查信息
export const delOperSearchBeforeByIds = (ids?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/deletePreoperativeByIds',
    method: 'POST',
    params: {
      ids,
    },
  });
};
// 删除检查信息
export const delOperSearchBeforeById = (id?: any) => {
  return service.request({
    url: '/patient/preoperativeInspection/deletePreoperativeById',
    method: 'POST',
    params: {
      id,
    },
  });
};

// 术后检查列表
export const getOperSearchAfter = (params?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/selectPostoperativeList',
    method: 'get',
    params,
  });
};

// 新增术后检查
export const addOperSearchAfter = (data?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/add',
    method: 'post',
    data,
  });
};
// 更新术后检查
export const updateOperSearchAfter = (data?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/updatePreoperative',
    method: 'POST',
    data,
  });
};
// 批量删除术后检查信息
export const delOperSearchAfterByIds = (ids?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/deletePostoperativeByIds',
    method: 'POST',
    params: {
      ids,
    },
  });
};
// 删除术后检查信息
export const delOperSearchAfterById = (id?: any) => {
  return service.request({
    url: '/patient/postoperativeInspection/deletePostoperativeById',
    method: 'POST',
    params: {
      id,
    },
  });
};
